Set-up of media stream transmission and server and client for media stream transmission

ABSTRACT

A network client device is disclosed having a media streamer for processing a media stream received at a first port of a client device. Further included is a setup controller configured to transmit a set-up request message and a discovery message without waiting for acknowledgement of reception of the set-up request message before transmission of the discovery message, from a second port and the first port respectively, to predetermined ports of a server device.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a divisional of copending U.S. application Ser. No.12/876,270 filed on Sep. 7, 2010, which is a non-provisional applicationclaiming the benefit of European patent application no. 09169658.3,filed on Sep. 7, 2009.

FIELD OF THE INVENTION

The invention relates to a method of transmitting a stream of datathrough a communication network and to devices for use in such anetwork.

BACKGROUND OF THE INVENTION

Media streaming from a server to client involves transmission of astream of messages, preceded by a set-up phase, in which the clientsends a commands to start the stream and the client and server set upparameters that are needed for the transmission. To the user, the set-upphase appears as a slow response that delays the start of service. Thisis especially so when roundtrip transmission via a wireless network areneeded. Therefore it is desirable to reduce the duration of the set-upphase as much as possible.

According to the IETF RTSP protocol described in RFC2326bis, the set-upphase involves one or more “set-up” commands transmitted via the networkfrom a client device to a server device, with a reply from the serverdevice to the client device, followed by a play command from the clientdevice. In addition a “describe” command may be needed, to obtainfurther parameters.

To speed up the set-up phase, pipelining of the commands may be used.This involves transmitting commands before replies to the precedingcommands have been received, but this is not possible when a commanddepends on information from a reply to a preceding command.

Further delay can occur when the client device is “visible” on thenetwork only via a firewall or a network address translator (NAT). Inthis case the client device cannot specify its own address, or evenwhich of its ports data must be addressed from the stream output port(s)of the server device. To solve this problem the client devices sendsdiscovery messages to the stream output ports of the server devicethrough the firewall or network address translator. This enables theserver device to recover the necessary address from the source addressof these discovery messages, including an identification of the port ifnecessary. The need for an additional discovery message increases theset-up delay. The increased delay can be significant because the addressdiscovery introduces a dependency between commands that limits thepossibility of pipelining. Moreover, plurality of discovery messages maybe needed in the case of lost traffic.

SUMMARY OF THE INVENTION

Among others, it is an object to reduce the delay involved with theset-up of a media stream.

A network client device is provided that transmits a set-up requestmessage and a discovery message. The discovery message is transmittedfrom a port of the client device to which the media stream must be sent.The discovery message serves to probe the identity of the port that maybe assigned by a firewall or network address translator between theclient device and a server device.

The discovery message is transmitted without waiting for acknowledgementof reception of the set-up request message. The discovery message islinked to the set-up request message by including matching client deviceselected identifiers in their payload fields. The set-up request messageand the discovery message are sent to predetermined ports of the serverdevice. Because the client device transmits the discovery message andthe set-up request messages to different ports, without waiting foracknowledgement of reception of the set-up request message, thediscovery message may arrive before the set-up request message.

The server device receives the discovery message and stores informationrecording that the discovery message has been received. In anembodiment, the entire message may be recorded, but it suffices torecord information regarding the message. Thus, in another embodimentthe fact that the message has been received, an identifier from thepayload of the message and an source address and port of the message arerecorded. The server device compares the identifiers of received set uprequest messages and the discovery messages according to the informationwith which reception was recorded, at least for discovery messages thatare received before the set-up request messages with which theiridentifiers are compared. The server device selects transport parametersfor transmission of the media stream responsive to detection that thefirst and second identifier have matching values, the selected transportparameters being based on data from said set-up request message and aport identification from a source field of the discovery message.

In an embodiment the server device comprises a controller and a mediastreamer. The controller intercepts set-up request message for the mediastreamer, only to pass these set-up request messages once they have beenpaired to discovery messages on the basis of the identifiers.

In an embodiment the client device transmits a plurality of set-uprequests and a play command, the set-up requests defining transportparameters for a video sub-stream, an audio sub-stream etc and the playcommand triggering the joint start of play of these sub-streams. In thisembodiment discovery messages for the different sub-streams are sent todifferent predetermined ports of the server device. The server devicereceives the plurality of set-up request messages and determines fromthe set-up messages at which of a number of predetermined ports itshould look for corresponding discovery messages. If the set-up requestmessage is a request message for audio or video, the server device maylook at predetermined ports for audio or video respectively, forexample. When discovery messages from these ports with matchingidentifiers have been found, using recorded information about receptionof the discovery messages at least when the discovery messages have beenreceived before the set-up request messages, transport parameters areselected. Start of play is delayed until after pairs of matching set-uprequests and discovery messages have been detected for each of thereceived set-up messages for the media stream. When a play command isused, a response to this command may be delayed until pairs have beendetected for all set-up messages for the media stream that have beenreceived before the play command for that media stream.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other objects and advantageous aspects will become apparentfrom a description of exemplary embodiments, using the followingfigures.

FIG. 1 shows a communication system

FIG. 2 shows a flow chart of operation of a server device

FIG. 3 shows a flow chart of operation of a client device

FIG. 4, 4 a illustrate message traffic between client and server device

FIG. 5 shows an embodiment of a server device.

DETAILED DESCRIPTION OF THE EMBODIMENTS

FIG. 1 shows a communication system, comprising a client device 10, aserver device 12, an intermediate device 14 and first and secondnetworks 16, 18 coupling client device 10 to intermediate device 14 andintermediate device 14 to server device 12 respectively.

In operation, server device 12 is used to transmit a series of messagescontaining data form a media stream to one or more ports of clientdevice, after a set-up phase wherein the media stream and transportparameters for transmitting the stream are selected. In the set-up phaseclient device 10 transmits one or more set-up request messages for aspecific streaming session as well as one or more discovery messagesassociated with these set-up request messages to predetermined ports ofserver device 12. The one or more discovery messages are sent from oneor more ports of client device 10 to indicate that these ports must beused to address the messages in the media stream. Before starting play,server device 12 waits until it has received discovery messages for allmedia types for which the stream is set-up.

Client device 10 and server device 12 each comprise a plurality ofcommunication layers. By way of example, three communication layers areillustrated in client device 10, although it should be understood thatmore layers may be present or that the illustrated layers themselves maybe composed of sub-layers. Each layer may be implemented using aprogrammable computer, programmed with a computer program to make theprogrammable computer perform the functions of the layer. Alternatively,dedicated circuits may be used to implement part or all of the functionsof the layers. The illustrated layers include an application layer 100with a setup controller 100 a and a media streamer 100 b, anintermediate layer 102 and an interface layer 104 configured to transmitand receive packets via first network 16. Server device 12 may havesimilar layers.

The packets comprise a destination field with a network address and portidentification and a payload field. Setup controller 100 a is configuredto set up stream transmission and streamer 100 b is configured toprocess a received stream, for example to control display of videoimages base on a stream of video data. Setup controller 100 a isconfigured to indicate port identifications to intermediate layer 102that are associated with streamer 100 b. Other port identifications maybe associated with other components 100 c,d in application layer 100.

Intermediate layer 102 is configured to form packets with portidentifications selected by setup controller 100 a and data from set-upcontroller 100 a in the payload field and to supply these packets tointerface layer 104 for transmission. Intermediate layer 102 isconfigured to receive packets from interface layer 104 and to supplyextracted payload data from those packets that have port identificationsassociated with setup controller 100 a or streamer 100 b to setupcontroller 100 a and streamer 100 b respectively.

FIGS. 2 and 3 show flow charts of operation of server device 12 andclient device 10 respectively. FIG. 4, 4 a illustrate message trafficbetween client device 10 and server device 12. FIG. 5 shows anembodiment of server device 12. In FIG. 4 client device 10 and serverdevice 12 are symbolized by a first and second vertical line 40, 42 andintermediate device 14 is symbolized by a third vertical line 41.Messages are symbolized by arrows. The messages include a setup requestmessage 43 a,b, a discovery message 44 a,b and a play message 45 a,bfrom client device 10 to server device 12, as well as a series of streammessages 48 a,b and a set-up response message 46 a,b and a play responsemessage 47 a,b from server device 12 to client device 10 in response tosetup request message 43 a,b and play message 45 a,b. A plurality ofsetup request messages, discovery messages and corresponding set-upresponses may be send, which is indicated by dashed arrows. The payloaddata field of a set-up message may comprise a string of character codes,such as

SETUP rtsp://server.com/media.3gp/trackID=3 RTSP/1.0 Cseq: 3 Session968367008 Transport:rtp/avp;unicast;client_port=<a>;server_port=<b>;

In this example, the character codes for SETUP identify the message as aset-up request message, the string “rtsp . . . ” identifies the requiredstream content, the strings “RTSP/1.0” Cseq: 3 and “Transport . . . ”define further transport parameters such as the requested protocol, portnumbers (with values denoted by <a> and <b>) etc. Furthermore the string“Session: . . . ” in the set-up request message defines an identifiervalue. It should be noted that this set-up request from client device 10includes a server port number and a session identifier, parameters thatare normally selected by server device 12. The payload data of thediscovery message 44 a,b that corresponds to the set-up request message43 a,b contain the same session identifier.

The payload data field of set-up response may take comprise a string ofcharacter codes such as

RTSP/1.0 200 OK Cseq: 3 Session 968367008Transport:rtp/avp;client_port=<a>;server_port=<b>;ssrc=2A3F93ED

In this example, the set-up response confirms acceptance of a number ofparameters from the set-up request, including the session identifier andsupplies further parameters. Although a single set-up and set-upresponse message are shown by way of example, it should be appreciatedthat a plurality of such set-up and set-up response messages fordifferent types of stream may be used, for example to set-up video andaudio streams for a session.

Intermediate device 14 may be a conventional interface between networks,which receives the transmitted messages 43 a, 44 a, 45 a from clientdevice 10 and responses 46 b, 47 b from server device 12 via first andsecond networks 16, 18 respectively and forwards translated versions 43b, 44 b, 45 b, 46 a, 47 a of these messages to the server device 12 andthe client device via second and first networks 18, 16 respectively.When intermediate device 14 is a network address translator or firewall,it may translate addresses in source and destination fields of themessages 43 a, 44 a, 45 a, 46 b, 47 b, including port identifications inthose fields.

Intermediate device 14 may maintain one or more stored addresstranslation tables, representing for example a pairing relation betweensource addresses for use in messages to second network 18 and addressesof devices coupled to first network 16 (only client device 10 is shown,but more devices may be present). Alternatively, or in addition, theaddress translation tables may represent a pairing relation betweenports of intermediate device 14 for use in messages over second network18 and ports and/or addresses of devices coupled to first network 16.Intermediate device 14 may use the one or more tables to select sourceaddresses for outgoing messages on second network 18 based on the sourceaddress of the message on first network 18 and/or output ports fortransmitting the outgoing messages. In the opposite directionintermediate device 14 may use the one or more tables to selectaddresses of destination devices (e.g. client device 10) on firstnetwork 16 for forwarding messages from second network 18 based on thedestinations addresses and/or ports with/at which the message arereceived from second network 18. As an additional protection measure,intermediate device 14 may be configured to pass messages from secondnetwork 18 only from addresses and/or ports at addresses to whichmessages have previously been sent via intermediate device 14.

Although an example is shown wherein the order of transmission of themessages corresponds to the order of reception, it should be appreciatedthat the order of transmission and reception may be mutually different.Operation of first and second networks 16, 18 and intermediate device 14may have the effect that the order of transmission of the messages doesnot correspond to the order of reception. Thus, reception of a version44 b of a discovery message 44 a may precede reception of a version 43 bof a set-up message, even though the discovery message 44 a wastransmitted after the set-up message 43 a. This is illustrated in FIG. 4a.

Set-up controller 100 a effectively defines a composite set-up requestthat comprises the set-up request message 43 a and the discovery message44 a that are transmitted from and to different ports. Server device 12uses the source port in the source field of the version 43 b of thediscovery message that arrives at server device in combination withparameters from the received version 43 b of the set-up request messageto set up a media stream.

Intermediate device 14, and/or networks 16,18 may have the effect thatthe temporal order of reception of messages differs from the temporalorder of transmission. This is illustrated in FIG. 4a , wherein a set-upmessage 43 b is shown to arrive after a discovery message 44 b, althoughthe set-up message was sent from the client before the discoverymessage.

FIG. 5 shows an embodiment of server device 12, comprising a mediastreamer 50, a media storage device 51, a controller 52, a controllermemory 53, a command message handler 55, a plurality of discoverymessage handlers 57 a,b, a network interface 59. Controller 52 hasinterfaces to controller memory 53, command message handler 55 anddiscovery message handlers 57 a,b and an output coupled to mediastreamer 50. Command message handler 55 and discovery message handlers57 a,b are associated with respective different port identifications ofserver device 12. Otherwise command message handler 55 and discoverymessage handlers 57 a,b may have the same structure, the labels“command” and “discovery” serving only to distinguish the handlers. Atleast command message handler 55 may be configured to restore the orderof command messages addressed to its associated port of server device 12and to queue the messages in a buffer. Media streamer 50, commandmessage handler 55 and discovery message handler 57 a,b are coupled tonetwork interface 59. The outputs of media streamer 50 are coupled tothe same ports as discovery message handlers 57 a,b. Media streamer 50is coupled to media storage device 51 and it has an input coupled tocommand message handler 55.

FIG. 2 shows a process of operation of server device 12 to establishstreaming with a client device 10. It should be emphasized that serverdevice 12 may be configured to set up streaming with any client device10, or even with any number of client devices 10 in parallel, withoutknowing the identity of the client devices in advance. The stepsinvolved with a single client device 10 will be emphasized, but itshould be kept in mind that in parallel with this messages from otherclient devices 10 may arrive.

In a first step 21 controller 52 tests whether a discovery messagehandler 57 a,b has received a version of discovery message 44 b directedat the port with which discovery message handler 57 a,b is associated.If controller 52 detects such a message, controller 52 performs a secondstep 22, wherein it stores information recording the address and portidentification from the source field of the received version discoverymessage 44 b, in combination with an identifier from a payload field ofreceived version of the discovery message 44 b. From second step 22 or,if no discovery message has been received, from first step 21, theprocess proceeds to a third step 23.

In third step 23, controller 52 tests whether command message handler 55has received a version of a set-up request message 43 b directed at theport with which command message handler 55 is associated or, in anembodiment, whether it has recorded such a set-up request messagepreviously. The setup request from client device 10 specifies thetransport mechanism to be used for the streamed media, includingtransport parameters that are acceptable to the client device 10. If aversion of the set-up request message 43 b has been received, controller52 executes a fourth step 24, wherein it tests whether it has recordedinformation that indicates earlier reception of a version of a discoverymessage 44 b, that has a recorded identifier from said discovery messagethat matches an identifier in the payload field of the set-up requestmessage and a source address that matches the source address of thereceived version of the set-up request message 43 b for the media streamfor which set-up is requested.

If information that meets these conditions is found in fourth step 24,controller 52 executes a fifth step 25, wherein controller 52 forwardsthe set-up request to media streamer 50. Moreover, controller 52supplies a port identification based on the stored information about thediscovery message 44 b to select a destination port for transmission ofthe stream to the port from which the discovery message was sent. Mediastreamer 50 selects the actual transport parameters to be used forstreaming the media stream, using the supplied port identification. Whenthe parameters and the identifier from the set-up request message areacceptable, media streamer 50 copies these parameters and uses theidentifier as session identifier. Media streamer 50 records the selectedsession identifier and the transport parameters in association with theaddress of client device 10. Still in fifth step 25, media streamer 50causes command message handler 55 to send a set-up response message 46 bback to client device 10, the response message comprising the selectedtransport parameters and the one or more session identifiers, inresponse to set-up request message 43 b.

If fourth step 24 shows that no discovery message was received,controller 52 proceeds back to first step 21, leaving the set-up requestmessage in the message queue of command message handler 55 or afterexecuting a sub-step (not shown) wherein it stores information to recordthe set-up request message. Optionally, the set-up response may be sentin this sub-step as well, instead of in fifth step 25. After fifth step25 controller 52 proceeds to execute a sixth step 26.

First step 21 to fifth step 25 may be executed for different clientdevices 10 and for respective types of stream for the same client device10, such as corresponding audio and video streams of an audiovisualcontent item, using set-up request messages and discovery messages foreach media stream, for the ports to be used for the respective streams.

Set-up requests may be used that identify the type of stream to whichthey apply. Discovery messages for different types of stream may bedistinguished according to the port of server device 12 at which theyarrive, i.e. according to the message handler 57 a,b from whichcontroller 62 obtains the discovery message. Set-up requests fromdifferent client devices 10 may be distinguished on the basis of thesource addresses of the received messages.

Controller 52 may record information from the discovery message such asan identifier in association with the identifications of the type ofstream, the source address and port of the messages. Controller 52 mayexecute fifth step 25 only for those types of stream for which both aset-up message and a discovery message with the same source address havebeen received.

Controller 52 may be configured to test for a source address whetherfifth step 25 has been executed for all types of stream corresponding tothe set-up request messages that have been received with that sourceaddress, before proceeding to sixth step 26 for the source address,repeating the process from first step 21 otherwise. In an embodiment theprocess from first step 21 is repeated concurrently with execution ofsixth step 26 and the steps that follow it, to set up other streams forsource addresses corresponding to other client devices 10 (i.e. theaddresses used for the client devices 10 by intermediate device 14).

Summarizing, server device 12 “listens” for setup request messages at acommand port and discovery messages at a number of predetermined portsthat are to be used for respective parts (audio, video) of a mediastream. Server device 12 stores information that records that setuprequest messages and/or discovery messages were received, at least whenno stored record of a corresponding discovery message and/or setuprequest message can be found respectively. The recorded informationindicates an identifier from the payload of the received setup requestmessages and/or discovery messages, the source address and, in the caseof the discovery messages, the port number from the source address ofthe message. The port at which the discovery message was received isalso indicated, for example by storing records for messages that werereceived at different ports in different tables, associated with therespective ports.

When server device 12 receives a setup request message or a discoverymessages, it (that is, its controller) searches the stored informationfor a matching a discovery messages or setup request messagerespectively, i.e. a message with the same source address and the sameidentifier the setup request message requesting setup of a media typecorresponding to the port at which the discovery message was received.Server device 12 responds to a subsequent play message only oncematching pairs of a setup request message and a discovery message havebeen found for all stream parts, with source addresses corresponding tothe source address of the play message. Then play of the parts isstarted from the predetermined ports at which the discovery messageswere received addressed to the ports from the source field of thesediscovery messages. In an embodiment a plurality of different predefinedports of server device 12 may be provided for the same type of streampart (e.g. video). In this embodiment server device 12 searchesdiscovery matches from each of these ports for a match with a setuprequest message for that type of stream part and selects the port ofserver device 12 on which the discovery message was received forreturning the stream part of this type (e.g. video).

In sixth step 26, controller 52 tests whether command message handler 55has received a version of a play message 45 b directed at the port withwhich command message handler 55 is associated, from the source addresscorresponding to a client device 10 for which pairs of set-up requestand discovery messages have been found or, in an embodiment, whethersuch a play message has been recorded. If sixth step 26 shows thatanother set-up request message has been received instead of a playmessage, the process may return to third step 23.

The play message contains information telling server device 12 to startsending data from the stream or streams using the transport parametersselected in response to the setup request message or messages. If aversion of the play message 45 b has been received, controller 52forwards the play message to media streamer 50 in seventh step 27, andmedia streamer 50 executes an eighth step 28, causing command messagehandler 55 to send a response back to client device 10 to acknowledgethe play command and controller 52. Subsequently media streamer 50repeatedly executes a ninth step 29, wherein it sends successive mediacontent messages 48 b containing the stream data from one or more portson which server device 12 received the discovery messages 44 b, to theports obtained from the discovery messages and the source address of theplay message, the discovery messages and the set-up request messages.Optionally, the media content messages 48 may be sent form differentports of server device 12, when it is known that intermediate device 14translates addresses properly, even if they are sent from the otherports. Optionally seventh step 27 may comprise an additional test todetect whether matching discovery messages 44 b have been found for eachreceived set-up request message 43 b for the same session identifier asthe play message 45 b, the process storing information for future use,indicating that the play message has been received, and returning tofirst step 21 otherwise.

Although FIG. 2 shows one example of the sequence of handling set-uprequest and discovery messages, it should be appreciated that differentsequences may be used. Thus, testing of discovery messages may followhandling of set-up requests, or even after reception of the playmessage. However, the play message is effectuated only aftercorresponding discovery messages and set-up requests messages have beenfound. If a set-up request message specifies parameters that cannot besupported by server device 12, server device 12 may respond by returninga warning message (not shown) and client device 10 may be configured torespond to the warning message by retrying the set-up message withmodified parameters.

In an embodiment controller 52 may keep the recorded information fromdiscovery message 44 b, set-up request message 43 a and play message 45a stored indefinitely as long as seventh step 27 is not reached.However, it is preferred to impose a time limit, for example byrecording the information in association with time stamps and discardingor ignoring the recorded information in the process of FIG. 2 when thetime stamp and a current clock time value indicate that the age of theinformation exceeds a threshold value.

FIG. 3 shows a flow-chart of operation of client device 10. In a firststep 31, set-up controller 100 a causes intermediate layer 102 to sendone or more set-up request messages 43 a for respective types of streams(e.g. audio and video), addressed to the port that is associated withcommand message handler 55 of server device 12. Set-up controller 100 acauses intermediate layer 102 to send one or more discovery messages 44a addressed to the one or more ports of server device 12 that areassociated with discovery message handlers 57 a,b for the respectivetypes of stream. Optionally, set-up controller 100 a selects anidentifier and includes this identifier in all set-up request anddiscovery messages 43 a, 44 a. Setup controller 100 a uses differentports of client device 10 for transmitting the set-up request message 43a and the discovery message 44 a. The one of more discovery messages 44a are transmitted from the ports that will be used to receive streamdata for streamer 100 b.

In a second step 32 set-up controller 100 a causes intermediate layer102 to send a play message 45 a addressed to the port that is associatedwith command message handler 55 of server device 12.

In a third step 33 set-up controller 100 a tests whether responses arereceived back to the one or more set-up request messages 43 a and playmessage 45 b. Third step 33 is repeated until responses have beenreceived back. Optionally, the test for a response to the one or moreset-up request messages 43 a is executed before second step 32, secondstep 32 being executed only once response to the one or more set-uprequest messages 43 a has been received back. If no response has beenreceived back that confirms receipt of a discovery message 44 a set-upcontroller 100 a optionally executes a sub-step 33 a, wherein it repeatstransmission of the discovery message 44 a. The one or more discoverymessages 44 a may be transmitted in the form of UDP packets, that is,using a protocol that does not guarantee delivery of the packets.

Once third step 33 shows that the responses have been received set-upcontroller 100 a executes a fourth step 34, wherein it initializesstreamer 100 b according to the selected transport parameters and one ormore session identifiers from the responses. Subsequently streamer 100 brepeatedly executes a fifth step 35, receiving messages with stream datafrom the port or ports that was or were used to transmit one or morediscovery messages 44 a and processing this stream data, for example bydecoding image information from the stream data and using the decodedimage information to control image display on an image display device(not shown).

In this way set-up controller 100 a effectively defines a compositeset-up request that comprises the set-up request message 43 a and thediscovery message 44 a that are transmitted from and to different ports.Server device 12 pairs a received version of the set-up request message43 a with a discovery message 44 b and sets up media streams usinginformation from the set-up request message 43 b and the portidentification from the received version of the discovery message 44 bthat has been paired with the set-up request message 43 b. Pairingensures that a minimum of roundtrip messages is needed.

A predetermined port of server device may be used to address thediscovery request messages 43 a. In an embodiment server device 12 mayadvertise this port number in response to query messages. As described,client device 10 may be configured to wait for reception of a set-upresponse 46 a before transmitting a play message 45 a. In this caseserver device 12 need look for play commands only after sending a set-upresponse 46 b. However, the process can be speeded up by transmittingthe play message 45 a before reception of the set-up response 46 b,supplying information to tie the play message 45 a and the set-upresponse 46 b.

An embodiment has been described wherein client device 10 selects asession identifier and supplies this identifier in set-up requestmessages and discovery messages to server device 12, server device 12using the session identifier to search for pairs of corresponding set-uprequest messages and discovery messages. This provides for a simple wayof ensuring that matched pairs set-up request messages and discoverymessages can be found. Alternatively, client device 10 may useidentifiers specifically for the purpose of message matching. In thiscase server device 12 may select the session identifier and transmitinformation linking the session identifier to the identifier used byclient device 10. In another embodiment the identifiers in set-uprequest messages and discovery messages may be omitted, server device 12searching for matching pairs only on the basis of source addresses ofthe messages.

Other variations to the disclosed embodiments can be understood andeffected by those skilled in the art in practicing the claimedinvention, from a study of the drawings, the disclosure, and theappended claims. In the claims, the word “comprising” does not excludeother elements or steps, and the indefinite article “a” or “an” does notexclude a plurality. A single processor or other unit may fulfill thefunctions of several items recited in the claims. The mere fact thatcertain measures are recited in mutually different dependent claims doesnot indicate that a combination of these measured cannot be used toadvantage. A computer program may be stored/distributed on a suitablemedium, such as an optical storage medium or a solid-state mediumsupplied together with or as part of other hardware, but may also bedistributed in other forms, such as via the Internet or other wired orwireless telecommunication systems. Any reference signs in the claimsshould not be construed as limiting the scope.

The invention claimed is:
 1. A network client device comprising: a mediastreamer for processing a media stream received at a first port of thenetwork client device; and a set-up controller configured to transmit aset-up request message and a discovery message, wherein the set-uprequest message and the discovery message include first and secondidentifiers, respectively, with matching values in payload fields of theset-up request message and the discovery message, and wherein the set-upcontroller is configured to transmit a set-up request message and adiscovery message by: transmitting the set-up request message from asecond port of the network client device to a first message handler of aserver device via a first port of the server device, and transmittingthe discovery message from the first port of the network client deviceto a second message handler of the server device via a second port ofthe server device before receiving an acknowledgement of reception ofthe set-up request message by the server device, wherein the set-upcontroller is further configured to initiate transmission of the mediastream from the server device to the first port of the network clientdevice according to a set of transport parameters, and wherein theserver device is configured to transmit the media stream to the networkclient device in response to comparing the matching values in the firstidentifier of the set-up request message and the second identifier ofthe discovery message.
 2. A non-transitory computer readable storagemedium including a program of instructions that, in response toexecution by a programmable processor of a network client device, causethe network client device to: transmit a set-up request message from afirst network port of the network client device to a first messagehandler of a server device via a first port of the server device,wherein the set-up request includes a first identifier with a matchingvalue in a payload field of the set-up message, and wherein the set-uprequest message indicates a set of transport parameters; transmit adiscovery message from a second network port of the network clientdevice to a second message handler of the server device via a secondport of the server device before receiving an acknowledgement ofreception of the set-up request message by the server device, whereinthe discovery message includes a second identifier with the matchingvalue in a payload field of the discovery message, wherein the discoverymessage indicates a selected port; trigger a media streamer to startreceiving and processing a media stream from the selected port accordingto the set of transport parameters; and initiate transmission of themedia stream by the server device to the first port of the networkclient device according to the set of transport parameters, wherein theserver device is configured to transmit the media stream to the networkclient device in response to comparing the matching values in the firstidentifier of the set-up request message and the second identifier ofthe discovery message.
 3. The network client device of claim 1, whereinthe set of transport parameters is contained in the set-up requestmessage and the discovery message.
 4. The non-transitory computerreadable storage of claim 2, wherein the program instructions, inresponse to execution by the programmable processor, cause the networkclient device to transmit a play message associated with the set-uprequest message and discovery message to the server device to prompt theserver device to transmit the media stream.
 5. The network client deviceof claim 1, wherein the set-up controller is configured to: transmit thediscovery message paired with the set-up request message, with the firstand second identifiers respectively therein; associate the discoverymessage and the set-up request message to a single media stream request.6. The network client device of claim 1, wherein the set-up controlleris further configured to transmit a play message to the server device toprompt the server device to transmit the media stream to the networkclient device in accordance with the set of transport parameters in theset-up request message and addressed to the port of the network clientdevice indicated in a source field of the discovery message.
 7. Thenetwork client device of claim 1, wherein the set-up request messagefurther includes a session identifier to be used for the transmission ofthe media stream by the server device to the network client device.
 8. Anetwork communication system comprising: a server device configured totransmit a media stream from the server device to a network clientdevice, the server device including: a first message handler configuredto receive a discovery message on a predetermined first port of theserver device, the discovery message having a payload data field thatcontains a first identifier, a second message handler configured toreceive a set-up request message having a payload data field thatcontains a second identifier from a second port of the server device, amedia streamer configured to transmit the media stream in accordancewith selected transport parameters from a further port of the serverdevice to a selected destination port of the network client device, amemory, and a controller coupled to the first and second messagehandlers, the media streamer and the memory, and configured to: storeinformation in the memory recording that the discovery message has beenreceived, compare the first and second identifiers of the receivedset-up request message and the discovery message, at least when thediscovery message has been received before the set-up request message,and respond to detection that the first and second identifiers havematching values by controlling selection of the transport parameters andthe destination port based on the set-up request message and a sourceport identification from a source field of the discovery message; andthe network client device including: a media streamer configured toprocess the media stream received at a first port of the network clientdevice, and a set-up controller configured to transmit the set-uprequest message from a second port of the network client device to thepredetermined first port of the server device and to transmit thediscovery message from the first port of the network client device tothe second port of the server device before receiving an acknowledgementof reception of the set-up request message by the server device, thediscovery message and set-up request message including the first andsecond identifiers, respectively, wherein the payload fields of theset-up request message and the discovery message include the matchingvalues.
 9. The non-transitory computer readable storage medium of claim2, wherein the program instructions, in response to execution by theprogrammable processor, cause the network client device to transmit thediscovery message paired with the set-up request message, with the firstand second identifiers respectively associating the discovery messageand the set-up request message with a single media stream request. 10.The network communication system of claim 8, wherein the media streamerof the server device is further configured to retransmit a sessionidentifier from the set-up request message with the media stream to thenetwork client device.
 11. The network communication system of claim 8,wherein the discovery message is transmitted using a User DatagramProtocol (UDP).
 12. The network communication system of claim 8, whereinthe set-up controller is configured to transmit the discovery messagepaired with the set-up request message, and with the first and secondidentifiers respectively therein associating the discovery message andthe set-up request message with a single media stream request.
 13. Thenetwork communication system of claim 8, wherein the set-up controlleris further configured to transmit a play message to the server device toprompt the server device to transmit the media stream to the networkclient device in accordance with the selected transport parameters andaddressed to the port of the network client device indicated in thesource field of the discovery message.
 14. A method for processing amedia stream to a network client device, the method comprising:transmitting a set-up request message from a second port of a networkclient device to a first message handler of a server device via a firstport of the server device, wherein the set-up request message includes afirst identifier in a payload field of the set-up request message;transmitting a discovery message from a first port of the network clientdevice to a second message handler of the server device via a secondport of the server device before receiving an acknowledgement ofreception of the set-up request message by the server device, whereinthe discovery message includes a second identifier in a payload field ofthe discovery message, wherein the first identifier and the secondidentifier include matching values; and processing, by the networkclient device, a transmission of a media stream from the server deviceto the first port of the network client device according to a set oftransport parameters, wherein the server device is configured totransmit the media stream to the network client device in response tocomparing the matching values in the first identifier of the set-uprequest message and the second identifier of the discovery message. 15.The method of claim 14, wherein the set of transport parameters arecontained in the set-up request message and the discovery message. 16.The method of claim 14, wherein transmitting the set-up request messageand transmitting the discovery message comprise: transmitting, by thenetwork client device, the discovery message paired with the set-uprequest message; and associating, by the network client device, thediscovery message and the set-up request message to a single mediastream request.
 17. The method of claim 14, further comprising:transmitting, by the network client device, a play message to the serverdevice to prompt the server device to transmit the media stream to thenetwork client device in accordance with the set of transport parametersand addressed to the first port of the network client device indicatedin a source field of the discovery message.
 18. The method of claim 14,wherein the set-up request message further includes a session identifierto be used for the transmission of the media stream by the server deviceto the network client device.